{% load static %}
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <title>登录</title>
    <!-- Bootstrap -->
    <link href="{% static '/plugins/bootstrap/css/bootstrap.min.css' %}" rel="stylesheet">
    <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
    <script src="{% static '/plugins/jQuery/jquery-2.2.3.min.js'%}"></script>
    <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
    <script src="{% static '/plugins/bootstrap/js/bootstrap.min.js'%}"></script>

</head>
<body>

<div class="container-fluid">
    <div class="col-sm-6 col-sm-offset-3" style="margin-top: 70px">
        <h1 class="text-center">用户登录</h1>
    </div>
    <div class="row">
        <div class="col-sm-6 col-sm-offset-3">
            <h3 style="color: red">{{ msg }}</h3>
            <form action="/login" method="post">
                {% csrf_token %}
                <div class="form-group">
                    <label for="username">用户名</label>
                    <!--           注意bootstrap默认input 没有name属性，需要手动添加-->
                    <input type="text" class="form-control" id="username" name="username" placeholder="用户名" required >
                </div>
                <div class="form-group">
                    <label for="password">密码</label>
                    <input type="password" class="form-control" id="password" name="password" placeholder="密码" required>
                </div>
                <button type="submit" style="margin-top: 10px" class="btn btn-primary btn-block">登录</button>
            </form>
            <a href="/toreg" style="margin-top: 10px;display: block;font-size: 14px">注册</a>
        </div>


    </div>
</div>

</body>
</html>
